<?php
if (empty($_SERVER['HTTP_HOST'])) {
    echo "HTTP_HOST empty\n";
    die;
}
$h=$_SERVER['HTTP_HOST'];
$runtimes_dir=dirname(__FILE__).'/runtimes';

cs('site_title','Default Title');
cs('site_description','Default Desc');
if (file_exists($runtimes_dir.'/'.$h.'.php')) {
    $runtime_file=$runtimes_dir.'/'.$h.'.php';
} else if ($h=='testfaq.com') {
    $runtime_file=$runtimes_dir.'/testfaq.php';
} else if ($h=='127.0.0.1') {
    $runtime_file=$runtimes_dir.'/local.php';
} else {
    $runtime_file=$runtimes_dir.'/default.php';
}
require $runtime_file;
